#ifndef DATABASEOVERVIEWWIDGET_H
#define DATABASEOVERVIEWWIDGET_H
#include <QTreeWidget>
#include <QPushButton>
#include <QDialog>
#include <QTreeWidgetItem>
#include <client/dbclient.h>
using namespace mongo;
class DatabaseOverviewWidget : public QDialog
{
    Q_OBJECT
public:
    explicit DatabaseOverviewWidget(BSONObj& bsonObj,QWidget* parent=0);
    enum {NUMBER_OF_DATABASE_PROPERITIES=11};
protected:
    QTreeWidget* treeWidget;
    QPushButton* okButton;
    QPushButton* cancelButton;
public:
    static QString property_names[NUMBER_OF_DATABASE_PROPERITIES];
    BSONObj serverStatusObj;
    void addChildBsonObjs(BSONObj bsonObj, QTreeWidgetItem *parent);
};
#endif // DATABASEOVERVIEWWIDGET_H
